package com.guet.issue.mapper;

import com.guet.issue.beans.entity.Issue;
import com.guet.issue.beans.vo.IssueDateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Li
 * @create 2022-12-16-21:43
 */
@Mapper
public interface IssueMapper {
    void add(String newIssue, Integer userId);

    void delete(Integer id);

    List<Issue> find(@Param("d") Integer userId, @Param("key") String keyWord);

    void updateSum(int i, Integer issueId);

    Integer selectSum(@Param("issueId") Integer issueId);

    IssueDateVO selectIssue(@Param("issueId") Integer issueId);
}
